home *** CD-ROM | disk | FTP | other *** search
- Path: ivan.iecc.com!not-for-mail
- From: Graham D Parrington <Graham.Parrington@ncl.ac.uk>
- Newsgroups: comp.lang.c++,comp.compilers
- Subject: Re: Parsing C++ headers?
- Date: 18 Apr 1996 00:32:28 -0400
- Organization: University of Newcastle upon Tyne
- Sender: johnl@iecc.com
- Approved: compilers@ivan.iecc.com
- Message-ID: <96-04-104@comp.compilers>
- References: <96-04-033@comp.compilers> <96-04-078@comp.compilers>
- NNTP-Posting-Host: localhost.iecc.com
- Keywords: C++, parse
-
- John Mitchell <104316.1514@CompuServe.COM> writes:
- >I want to parse C++ header files, and extract information about the
- >contained classes and their interface. A yacc-able grammar for this
- >type of problem ( or superset of it, as for compilation) would be a
- >great help. I'm aware of a grammar for C++ 2.0 out there - is there a
- >later version supporting templates?
-
- You could always look at the C++ stub generator that's part of Arjuna.
- That has to read C++ headers and pick out classes, determine
- inheritence etc in order to be able to reproduce equivalent classes
- that do RPC. It has a yacc parser for a grammer that supports
- templates to some extent (it is not complete w.r.t the current ANSI
- spec but it does a fair job). The stub system is described in Usenix
- Computer Systems Vol 8 No 2. You can get Arjuna source and papers
- (including the stub system) from http://arjuna.ncl.ac.uk
-
- Have fun!
-
- Graham
- --
- EMAIL = Graham.Parrington@newcastle.ac.uk
- POST = Dept. of Computing, The University, Newcastle upon Tyne, UK NE1 7RU
- VOICE = +44 191 222 8067 FAX = +44-191-222-8232
- --
- Send compilers articles to compilers@iecc.com,
- meta-mail to compilers-request@iecc.com.
-